package com.yao.service;

import me.chanjar.weixin.common.exception.WxErrorException;
import me.chanjar.weixin.mp.bean.result.WxMpOAuth2AccessToken;

/**
 * User: 姚宏武
 * Date: 2018/3/7
 * Time: 16:23
 * Email：401369870@qq.com
 * Description:
 */
public interface WxOpenService {

    /**
     * 用code换accessToken
     *
     * @param code
     * @return
     * @throws WxErrorException
     */
    WxMpOAuth2AccessToken getOAuth2AccessToken(String code) throws WxErrorException;
}
